include ../cdef.mk
out_path_src = ../obj/
incpath_src = ../include/
obj_net = $(out_path_src)etherframe.o $(out_path_src)arp.o $(out_path_src)ipv4.o $(out_path_src)icmp.o $(out_path_src)udp.o $(out_path_src)dhcp.o \
          $(out_path_src)tcp.o $(out_path_src)dns.o $(out_path_src)socket.o $(out_path_src)http.o $(out_path_src)net_syscall.o $(out_path_src)ntp.o
default : $(obj_net)
$(out_path_src)%.o : ./%.c Makefile
	gcc -m32 -I$(incpath_src) -nostdinc -nolibc -nostdlib -fno-builtin -ffreestanding -fno-stack-protector -Qn -fno-pic -fno-pie -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -fomit-frame-pointer -O0 -finput-charset=UTF-8 -fexec-charset=GB2312 -mno-mmx -mno-sse -mfpmath=387 $(CDEFS) -w -c ./$*.c -o $(out_path_src)$*.o
